package com.zhny.sensor.service;

import com.zhny.sensor.dao.SlaughterHouseRepositiry;
import com.zhny.sensor.entity.SlaughterHouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SlaughterHouseService {

    @Autowired
    private SlaughterHouseRepositiry slaughterHouseRepositiry;


    public SlaughterHouse findById(int id){
        return slaughterHouseRepositiry.findById(id).get();
    }
}
